package day1;

public class Test {
    public static void main(String[] args) {
        //继承测试
        Student student1 = new Student();
        student1.setName("cc");
        student1.setAge(18);
        student1.setJob("student");
        student1.setSchool("wtu");
        System.out.println("姓名："+student1.getName()+
                "\t年龄："+student1.getAge()+
                "\t职位："+student1.getJob()+
                "\t学校："+student1.getSchool());
        //重载测试
        student1.calculate(10,8);
        student1.calculate(15,12,11);
        //多态,重写测试
        Person person = new Student();
        person.speak();

    }
}
